package com.zjy.heath_ms.controller;

import com.zjy.heath_ms.entity.Result;
import com.zjy.heath_ms.service.ReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 项目名 heath_ms
 * 类名  ReportController
 * 作者 lzq
 * 创建时间  2025/5/18 11:30
 */

@RestController
@RequestMapping("/report")
public class ReportController {

    @Autowired
    private ReportService reportService;

    @GetMapping("/business")
    public Result getBusiness(){
        Map<String, Object> businessReportData = reportService.getBusinessReportData();
        return Result.buildSuccess(businessReportData);
    }
}
